package com.ruoyi.project.registration.mapper;

import com.ruoyi.project.registration.domain.RegDrug;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface RegDrugMapper {

    /**
     * 添加药用处方
     * */
    @Insert("insert into " +
            "reg_drug(rd_id,rd_name,rd_num,rd_price,rd_amount,rd_remark,rd_status,rd_rr_id) " +
            "values(default,#{rdName},#{rdNum},#{rdPrice},#{rdAmount},#{rdRemark},#{rdStatus},#{rdRrId})")
    int  insert(RegDrug regDrug);
}
